﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FanCodeToSysCodeManage.aspx.cs"
    Inherits="Admin_FanCodeToSysCodeManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../css/Master.css" type="text/css" rel=Stylesheet />
</head>
<body style="width: 95.4%">
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lblTitle" Text="风机状态代码管理" runat="server" Style="position: absolute;
            margin-left: 10px; font-family: 微软雅黑; letter-spacing: 5pt; margin-top: 8px; font-size: 16pt;
            font-weight: bold"></asp:Label>
        <img src="../pics/ReportModule.jpg" style="width: 100%; height: 38px" />
        <table width="100%" border="1" align="center" bordercolorlight="#999999" bordercolordark="#FFFFFF"
            cellspacing="0" cellpadding="2" id="aa">
            <tr bgcolor="#FFFFFF">
                <td style="font: 12; width: 15%">
                    <div align="right">
                    选择风电场
                </td>
                <td style="width: 25%">
                    <div align="left">
                        <asp:DropDownList ID="dropPlantName" runat="server" Width="70.5%" OnSelectedIndexChanged="dropPlantName_SelectedIndexChanged"
                            AutoPostBack="True">
                            <asp:ListItem>瓜州风电场</asp:ListItem>
                            <asp:ListItem>玉门风电场</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblIdKey" runat="server" Visible="False"></asp:Label>
                    </div>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td style="font: 12">
                    <div align="right">
                    风机状态码
                </td>
                <td>
                    <div align="left">
                        <asp:TextBox ID="textFanCode" runat="server" Width="69%"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="textFanCode"
                            ErrorMessage="风机状态码不能问空"></asp:RequiredFieldValidator></div>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td style="font: 12">
                    <div align="right">
                    风机状态码描述
                </td>
                <td>
                    <div align="left">
                        <asp:TextBox ID="textFanDesc" runat="server" Width="69%"></asp:TextBox></div>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td style="font: 12">
                    <div align="right">
                    系统状态
                </td>
                <td>
                    <div align="left">
                        <asp:DropDownList ID="dropSysState" runat="server" Width="70.5%">
                            <asp:ListItem Value="0">待机状态</asp:ListItem>
                            <asp:ListItem Value="1">运行状态</asp:ListItem>
                            <asp:ListItem Value="2">通讯中断</asp:ListItem>
                            <asp:ListItem Value="3">停机状态</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td colspan="4">
                    <p style="float: right; margin-right: 80px">
                        <asp:Button ID="btnSure" runat="server" Text="确  定" OnClick="btnSure_Click" />
                        &nbsp;
                        <asp:Button ID="btnReset" runat="server" Text="重  置" CausesValidation="False" OnClick="btnReset_Click" /></p>
                </td>
            </tr>
            <tr bgcolor="#FFFFFF">
                <td style="font: 12; text-align: center" colspan="2">
                    <asp:GridView ID="gridFanStateList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        Width="100%" CssClass="grid" DataKeyNames="id_key" ForeColor="#333333" GridLines="None"
                        OnSelectedIndexChanging="gridFanStateList_SelectedIndexChanging" OnRowDeleting="gridFanStateList_RowDeleting">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField HeaderText="风机状态码" DataField="fan_code" />
                            <asp:BoundField HeaderText="风机状态码描述" DataField="fan_desc" />
                            <asp:BoundField HeaderText="系统状态" DataField="sys_desc" />
                            <asp:CommandField ShowSelectButton="True" SelectText="修改" HeaderText="操作" />
                            <asp:CommandField ShowDeleteButton="True" HeaderText="操作" DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确认删除？一旦删除将无法恢复！')&quot;&gt;删除&lt;/div&gt;" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
